package com.cyzy.controller;

import com.cyzy.domain.TOrders;
import com.cyzy.dto.ResponseData;
import com.cyzy.service.TOrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/TOrders")
public class TOrdersController {
    @Autowired
    private TOrdersService tOrdersService;
    @PostMapping("/setTOrders")
    public ResponseData setTOrders(@RequestBody TOrders tOrders) {
        return tOrdersService.setTOrders(tOrders);
    }
    @PostMapping("/updataTOrders")
    public int updataTOrders(@RequestBody TOrders tOrders) {
        return tOrdersService.updataTOrders(tOrders);
    }
}
